package com.qcxk.yuqian.system.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * @auther lp
 * @create 2021-05-24 18:35:50
 * @describe 部门表实体类
 */
@Data

@TableName("dept")
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门名称
     */
    @TableField("depart_name")
    private String departName;

    /**
     * 上级部门Id
     */
    @TableField("parent_id")
    private Integer parentId;

    /**
     * 创建时间
     */
    @TableField("ctime")
    private String ctime;
    /**
     * 描述
     */
    @TableField("description")
    private String description;
    /**
     * 下级节点
     */
    @TableField(exist = false)
    private List<Dept> childList = new ArrayList<Dept>();
    /**
     * 本节点用户
     */
    @TableField(exist = false)
    private JSONArray userList = new JSONArray();


}
